<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: logger   (YUI Library)</title>
	
	<link rel="shortcut icon" href="assets/yui_icon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1>
        	<a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a>
        	<img src="assets/yui_icon.png" alt="YUI文档中文化" />
        </h1>
        <h3>记录器 Widget&nbsp; <span class="subtitle">2.7.0b</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_logger.html" title="logger">logger</a>
                
                
        <form onsubmit="return false">
            <div id="propertysearch">
                搜索: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                   
                    <h3>模块：logger
                    


                    </h3>
                    <div class="description summary">
                        记录器 widget 提供了一个用 JavaScript 代码实现的简单方法来读写记录信息。
与调试版 YUI 库整合之后的实例将可以存取更底层 (under-the-hood) 的事件、错误和调试信息。
输出内容可以通过 LogReader 控制台来读取，并（或）被输出到浏览器的控制台。
                    </div>



                <div class="yui-gc">
                    <div class="yui-u first">

                            <p>本模块包含以下类：</p>
                            <script>
                            //var YUI_CLASS_LIST = [{"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "\u8bb0\u5f55\u5668\u5355\u4f8b\u7c7b\u63d0\u4f9b\u4e86\u6838\u5fc3\u7684\u8bb0\u5f55\u7ba1\u7406\u529f\u80fd\u3002\n\u8be5\u7c7b\u53ef\u4ee5\u4fdd\u5b58\u7531 YAHOO.log \u5168\u5c40\u51fd\u6570\u6216\u7531 LogWriter \u5b9e\u4f8b\u6240\u5199\u5165\u7684\u8bb0\u5f55\uff0c\n\u5e76\u901a\u8fc7\u4e0e console.log() \u65b9\u6cd5\u8fdb\u884c\u6574\u5408\u6765\u4e3a LogReader \u5b9e\u4f8b\n\u6216\u6d4f\u89c8\u5668\u539f\u751f\u7684\u63a7\u5236\u53f0\uff08\u5982 Firefox \u7684 Firebug \u6269\u5c55\u6216 Safari \u7684 JavaScript \u63a7\u5236\u53f0\uff09\n\u63d0\u4f9b\u8bb0\u5f55\u7684\u53ef\u5b58\u53d6\u65b9\u6cd5.", "guessedname": "Logger", "name": "YAHOO.widget.Logger"}, {"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "LogMsg \u7c7b\u7528\u6765\u5b9a\u4e49\u4e00\u5219\u8bb0\u5f55\u4fe1\u606f\u3002", "guessedname": "LogMsg", "name": "YAHOO.widget.LogMsg"}, {"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "LogReader \u7c7b\u4e3a\u8bfb\u53d6 YAHOO.widget.Logger \u6240\u8bb0\u5f55\u7684\u4fe1\u606f\u63d0\u4f9b\u754c\u9762\u3002", "guessedname": "LogReader", "name": "YAHOO.widget.LogReader"}, {"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "LogWriter \u7c7b\u4e3a YAHOO.widget.Logger \u63d0\u4f9b\u4e86\u4e00\u4e2a\n\u53ef\u4ee5\u4ece\u67d0\u4e2a\u5df2\u547d\u540d\u7684\u6765\u6e90\u6765\u8bb0\u5f55\u4fe1\u606f\u7684\u673a\u5236\u3002", "guessedname": "LogWriter", "name": "YAHOO.widget.LogWriter"}];
                            </script>
                            <div id="splash_classList">
                                <ul>
                                    <li><a href="YAHOO.widget.Logger.html" title="YAHOO.widget.Logger" id="class_0">Logger</a></li>
                                    <li><a href="YAHOO.widget.LogMsg.html" title="YAHOO.widget.LogMsg" id="class_1">LogMsg</a></li>
                                    <li><a href="YAHOO.widget.LogReader.html" title="YAHOO.widget.LogReader" id="class_2">LogReader</a></li>
                                    <li><a href="YAHOO.widget.LogWriter.html" title="YAHOO.widget.LogWriter" id="class_3">LogWriter</a></li>
                                </ul>
                            </div>
                    </div>
                    <div class="yui-u">

                        </div>
                </div>

			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>模块</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datemath.html" title="datemath">datemath</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class="selected"><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_selector.html" title="selector">selector</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>类</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.widget.Logger.html" title="YAHOO.widget.Logger">YAHOO.widget.Logger</a></li>
                                <li class=""><a href="YAHOO.widget.LogMsg.html" title="YAHOO.widget.LogMsg">YAHOO.widget.LogMsg</a></li>
                                <li class=""><a href="YAHOO.widget.LogReader.html" title="YAHOO.widget.LogReader">YAHOO.widget.LogReader</a></li>
                                <li class=""><a href="YAHOO.widget.LogWriter.html" title="YAHOO.widget.LogWriter">YAHOO.widget.LogWriter</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>文件</h4>
                        <ul class="content">        
                                <li class=""><a href="logger.js.html" title="logger.js">logger.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"url": "YAHOO.widget.LogReader.html#property_BASIC_TEMPLATE", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "BASIC_TEMPLATE"}, {"url": "YAHOO.widget.LogReader.html#property_bottom", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "bottom"}, {"url": "YAHOO.widget.Logger.html#property_categories", "access": "", "host": "YAHOO.widget.Logger", "type": "property", "name": "categories"}, {"url": "YAHOO.widget.LogMsg.html#property_category", "access": "", "host": "YAHOO.widget.LogMsg", "type": "property", "name": "category"}, {"url": "YAHOO.widget.Logger.html#event_categoryCreateEvent", "access": "", "host": "YAHOO.widget.Logger", "type": "event", "name": "categoryCreateEvent"}, {"url": "YAHOO.widget.LogReader.html#method_clearConsole", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "clearConsole"}, {"url": "YAHOO.widget.LogReader.html#method_collapse", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "collapse"}, {"url": "YAHOO.widget.Logger.html#method_disableBrowserConsole", "access": "", "host": "YAHOO.widget.Logger", "type": "method", "name": "disableBrowserConsole"}, {"url": "YAHOO.widget.LogReader.html#property_draggable", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "draggable"}, {"url": "YAHOO.widget.Logger.html#method_enableBrowserConsole", "access": "", "host": "YAHOO.widget.Logger", "type": "method", "name": "enableBrowserConsole"}, {"url": "YAHOO.widget.LogReader.html#property_entryFormat", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "entryFormat"}, {"url": "YAHOO.widget.LogReader.html#property_ENTRY_TEMPLATE", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "ENTRY_TEMPLATE"}, {"url": "YAHOO.widget.LogReader.html#method_expand", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "expand"}, {"url": "YAHOO.widget.LogReader.html#property_fontSize", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "fontSize"}, {"url": "YAHOO.widget.LogReader.html#property_footerEnabled", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "footerEnabled"}, {"url": "YAHOO.widget.LogReader.html#method_formatMsg", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "formatMsg"}, {"url": "YAHOO.widget.LogReader.html#method_getCategories", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "getCategories"}, {"url": "YAHOO.widget.LogReader.html#method_getCheckbox", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "getCheckbox"}, {"url": "YAHOO.widget.LogReader.html#method_getLastTime", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "getLastTime"}, {"url": "YAHOO.widget.LogWriter.html#method_getSource", "access": "", "host": "YAHOO.widget.LogWriter", "type": "method", "name": "getSource"}, {"url": "YAHOO.widget.LogReader.html#method_getSources", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "getSources"}, {"url": "YAHOO.widget.Logger.html#method_getStack", "access": "", "host": "YAHOO.widget.Logger", "type": "method", "name": "getStack"}, {"url": "YAHOO.widget.Logger.html#method_getStartTime", "access": "", "host": "YAHOO.widget.Logger", "type": "method", "name": "getStartTime"}, {"url": "YAHOO.widget.Logger.html#method_handleWindowErrors", "access": "", "host": "YAHOO.widget.Logger", "type": "method", "name": "handleWindowErrors"}, {"url": "YAHOO.widget.LogReader.html#property_height", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "height"}, {"url": "YAHOO.widget.LogReader.html#method_hide", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "hide"}, {"url": "YAHOO.widget.LogReader.html#method_hideCategory", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "hideCategory"}, {"url": "YAHOO.widget.LogReader.html#method_hideSource", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "hideSource"}, {"url": "YAHOO.widget.LogReader.html#property_isCollapsed", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "isCollapsed"}, {"url": "YAHOO.widget.LogReader.html#property_isPaused", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "isPaused"}, {"url": "YAHOO.widget.LogReader.html#property_left", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "left"}, {"url": "YAHOO.widget.LogWriter.html#method_log", "access": "", "host": "YAHOO.widget.LogWriter", "type": "method", "name": "log"}, {"url": "YAHOO.widget.Logger.html#method_log", "access": "", "host": "YAHOO.widget.Logger", "type": "method", "name": "log"}, {"url": "YAHOO.widget.Logger.html#property_loggerEnabled", "access": "", "host": "YAHOO.widget.Logger", "type": "property", "name": "loggerEnabled"}, {"url": "YAHOO.widget.LogReader.html#property_logReaderEnabled", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "logReaderEnabled"}, {"url": "YAHOO.widget.Logger.html#event_logResetEvent", "access": "", "host": "YAHOO.widget.Logger", "type": "event", "name": "logResetEvent"}, {"url": "YAHOO.widget.Logger.html#property_maxStackEntries", "access": "", "host": "YAHOO.widget.Logger", "type": "property", "name": "maxStackEntries"}, {"url": "YAHOO.widget.LogMsg.html#property_msg", "access": "", "host": "YAHOO.widget.LogMsg", "type": "property", "name": "msg"}, {"url": "YAHOO.widget.LogReader.html#property_newestOnTop", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "newestOnTop"}, {"url": "YAHOO.widget.Logger.html#event_newLogEvent", "access": "", "host": "YAHOO.widget.Logger", "type": "event", "name": "newLogEvent"}, {"url": "YAHOO.widget.LogReader.html#property_outputBuffer", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "outputBuffer"}, {"url": "YAHOO.widget.LogReader.html#method_pause", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "pause"}, {"url": "YAHOO.widget.Logger.html#method_reset", "access": "", "host": "YAHOO.widget.Logger", "type": "method", "name": "reset"}, {"url": "YAHOO.widget.LogReader.html#method_resume", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "resume"}, {"url": "YAHOO.widget.LogReader.html#property_right", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "right"}, {"url": "YAHOO.widget.LogWriter.html#method_setSource", "access": "", "host": "YAHOO.widget.LogWriter", "type": "method", "name": "setSource"}, {"url": "YAHOO.widget.LogReader.html#method_setTitle", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "setTitle"}, {"url": "YAHOO.widget.LogReader.html#method_show", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "show"}, {"url": "YAHOO.widget.LogReader.html#method_showCategory", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "showCategory"}, {"url": "YAHOO.widget.LogReader.html#method_showSource", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "showSource"}, {"url": "YAHOO.widget.LogMsg.html#property_source", "access": "", "host": "YAHOO.widget.LogMsg", "type": "property", "name": "source"}, {"url": "YAHOO.widget.Logger.html#event_sourceCreateEvent", "access": "", "host": "YAHOO.widget.Logger", "type": "event", "name": "sourceCreateEvent"}, {"url": "YAHOO.widget.LogMsg.html#property_sourceDetail", "access": "", "host": "YAHOO.widget.LogMsg", "type": "property", "name": "sourceDetail"}, {"url": "YAHOO.widget.Logger.html#property_sources", "access": "", "host": "YAHOO.widget.Logger", "type": "property", "name": "sources"}, {"url": "YAHOO.widget.LogReader.html#property_thresholdMax", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "thresholdMax"}, {"url": "YAHOO.widget.LogReader.html#property_thresholdMin", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "thresholdMin"}, {"url": "YAHOO.widget.LogMsg.html#property_time", "access": "", "host": "YAHOO.widget.LogMsg", "type": "property", "name": "time"}, {"url": "YAHOO.widget.LogReader.html#property_top", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "top"}, {"url": "YAHOO.widget.LogWriter.html#method_toString", "access": "", "host": "YAHOO.widget.LogWriter", "type": "method", "name": "toString"}, {"url": "YAHOO.widget.LogReader.html#method_toString", "access": "", "host": "YAHOO.widget.LogReader", "type": "method", "name": "toString"}, {"url": "YAHOO.widget.Logger.html#method_unhandleWindowErrors", "access": "", "host": "YAHOO.widget.Logger", "type": "method", "name": "unhandleWindowErrors"}, {"url": "YAHOO.widget.LogReader.html#property_verboseOutput", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "verboseOutput"}, {"url": "YAHOO.widget.LogReader.html#property_VERBOSE_TEMPLATE", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "VERBOSE_TEMPLATE"}, {"url": "YAHOO.widget.LogReader.html#property_width", "access": "", "host": "YAHOO.widget.LogReader", "type": "property", "name": "width"}];
</script>
</body>
</html>
